﻿namespace FlowServe.Models
{
    public class WorkTask
    {
        /// <summary>
        /// 作业名称
        /// </summary>
        public string? WorkName { get; set; }
        /// <summary>
        /// 分组
        /// </summary>
        public string ?grouping { get; set; }
        /// <summary>
        /// 上次作业时间
        /// </summary>
        public DateTime Timestamp { get; set; } = DateTime.Now;
        /// <summary>
        /// 作用间隔时间
        /// </summary>
        public string timeinterval { get; set; } = string.Empty;
        /// <summary>
        /// 调用地址
        /// </summary>
        public string? ApiUir { get; set; }
        /// <summary>
        /// 请求头
        /// </summary>
        public Dictionary<string,string>? header { get; set; }
        /// <summary>
        /// 请求参数
        /// </summary>
        public Dictionary<string,string> ? Requestparameters { get; set; }
        /// <summary>
        /// 调用方式
        /// </summary>
        public string? Requestmethod { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string? describe { get; set; }
        /// <summary>
        /// 运行状态
        /// </summary>
        public bool runningstate {  get; set; }=true;
    }
}
